$(function () {
    //表单获取光标
    $('.center_lxwm_content_right_text').on('click', function () {
        $(this).find('input').focus();
    })
    
    //轮播图
    function lbtTwo(lbtName, mntName) {
        var count = 0;
        var t;
        lunbo();
        $(".arrow_right_two").click(function () {
            clearInterval(t);
            count++;
            if (count == $(lbtName + ">ul>li").length) {
                count = 0;
            }
            yingChan(count);
            lunbo();
        })
        $(".arrow_left_two").click(function () {
            clearInterval(t);
            count--;
            if (count == -1) {
                count = $(lbtName + ">ul>li").length - 1;
            }
            yingChan(count);
            lunbo();
        })
        $(mntName + ">ul>li").hover(function(){
            clearInterval(t);
            var index = $(this).index();
            yingChan(index);
            count = index;
        },function(){
            lunbo();
        })
        function yingChan(a) {
            $(lbtName + ">ul>li").eq(a).stop().fadeIn(700).siblings("li").stop().fadeOut(700);
            $(mntName + ">ul>li").eq(a).addClass("roundLiHover").siblings().removeClass(
                "roundLiHover");
        }

        function lunbo() {
            t = setInterval(function () {
                count++;
                if (count == $(lbtName + ">ul>li").length) {
                    count = 0;
                }
                yingChan(count);
            }, 5000);
        }
    }
    lbtTwo('.slider', '.round');
    lbtTwo('.slider_zlhz');
})